package java56_3;

public class ShoujiTest {

	public static void main(String[] args) {
		HandleSet h = new HandleSet();
		h.type = "华为p20";
		h.cpu = "麒麟910";
		h.memory = 80000;
		h.screenSize = "10寸";
		h.color = "宝石蓝";
		// 1...........................
		// h.b.factory = "福建飞毛腿有限公司";
		// h.b.type = "镍镉电池";
		// h.b.vol = 10000000;
		// h.b.v = 200;
		// 2................
		Battery bt = new Battery();
		bt.factory = "福建飞毛腿有限公司";
		bt.type = "锂电池";
		bt.vol = 10000;
		bt.v = 5;
		// 把电池安装到手机上
		h.b = bt;// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

		h.show();
	}

}
